public class Solution {
    private int[] nums;
    public Solution(int[] nums) {
        int n = nums.length;
        this.nums = new int[n];

        for (int i = 0; i < n; i++) {
            myPrint(nums[i]);
        }
        System.out.println();
    }

    public void myPrint(int val) {
        System.out.print(val);
    }

    public void printNums () {
        for (int tmp : this.nums) {
            System.out.print(tmp + " ");
        }
        System.out.println();

    }
}
